#/***************************************************************************\
# * Copyright (C) by Keio University
# * CMakeLists.txt created in 12 2009.
# * Mail : fdesorbi@hvrl.ics.keio.ac.jp
# *
# * This file is part of the Depth Camera Project.
# *
# * The Depth Camera Project is free software; you can redistribute it and/or modify
# * it under the terms of the GNU Lesser General Public License as published by
# * the Free Software Foundation; either version 3 of the License, or
# * (at your option) any later version.
# *
# * The Depth Camera Project is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# * GNU Lesser General Public License for more details.
# *
# * You should have received a copy of the GNU Lesser General Public License
# * along with this program.  If not, see <http://www.gnu.org/licenses/>.
# *
# ***************************************************************************/

find_package(Doxygen)

if(DOXYGEN_FOUND) 
  configure_file(${${PROJECT_NAME}_SOURCE_DIR}/doc/Doxyfile-html.in ${${PROJECT_NAME}_BINARY_DIR}/doc/Doxyfile-html)
  add_custom_target (doc ${DOXYGEN_EXECUTABLE} ${${PROJECT_NAME}_BINARY_DIR}/doc/Doxyfile-html)
 SET(CMAKE_DOXYGEN_IMAGE_PATH ${${PROJECT_NAME}_SOURCE_DIR}/${IMAGE_PATH})
 #INSTALL( DIRECTORY ${${PROJECT_NAME}_BINARY_DIR}/doc/doc-doxygen/html DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/bin/doc/ PATTERN ".svn" EXCLUDE PATTERN "*~" EXCLUDE)
 #INSTALL(DIRECTORY ${${PROJECT_NAME}_SOURCE_DIR}/doc/images DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/bin/doc PATTERN ".svn" EXCLUDE PATTERN "*~" EXCLUDE)
endif (DOXYGEN_FOUND)
